package com.rdxer.repository;

import com.rdxer.model.ClazzStudentRelation;
import com.rdxer.model.Major;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface ClazzStudentRelationRepository extends JpaRepository<ClazzStudentRelation,String>,JpaSpecificationExecutor<ClazzStudentRelation>{


    List<ClazzStudentRelation> findAllByUserId(String userId);
    List<ClazzStudentRelation> findAllByUserIdAndClazzId(String userId,String clazzId);

}
